package demo5.dao;

import org.springframework.stereotype.Repository;

@Repository
public class UserDaoImpl implements IUserDao{
    @Override
    public boolean findUser(){
        System.out.println("UserDao:根据用户名查找用户信息");
        double random = Math.random();
        if(random > 0.5){
            System.out.println("UserDao:用户信息查找成功并将其返回");
            return true;
        }else {
            System.out.println("UserDao:未找到该用户信息");
            return false;
        }
    }
}
